<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/BookShelf.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<BookShelf.Mvc.Models.Book>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Books</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Books</h2>
    <% foreach (var book in ViewData.Model) { %>
        <div class="BookListImage">
            <a href="/books/book.aspx?ISBN=<%= book.Isbn %>"><img src="/images/BookCovers/<%= book.Isbn %>.jpg" alt="<%= book.Title %>" /></a>
        </div>
        <div class="BookListDetail">
            <h2><%= Html.ActionLink(book.Title, "Index", "Book", new { id= book.Isbn}, null) %></h2>
            by Authors Go Here<br />
            Publication Date: <%= book.PublicationDate.ToString("MMMM dd, yyyy") %><br />
            Binding: <%= book.BindingID %><br />
        </div>
    <%} %>
</asp:Content>
